/**
 * User: yuhao
 * Date: 15-5-13
 * Time: 下午1:57
 * 应用初始化入口程序
 */

define(
    [
        "dojo/dom",
        "dojo/on",
        "dojo/_base/array",
        "dojo/_base/lang",
        "dojo/topic",
        "esri/config",
        "esri/nls/jsapi",
        "./UIManager"
    ],
    function (dom, on, array, lang, topic, esriConfig, esriBundle, UIManager) {

        esriConfig.defaults.io.proxyUrl = "proxy.jsp";
        esriConfig.defaults.io.corsDetection = false;

        esriBundle.root.toolbars.draw.addPoint = "单击以添加点，按ESC键退出";
        esriBundle.root.toolbars.draw.start = "单击以开始绘制，按ESC键退出";
        esriBundle.root.toolbars.draw.freehand = "按下后开始并直到完成，按ESC键退出";
        esriBundle.root.toolbars.draw.addShape = "单击以添加形状，按ESC键退出";
        window.Global={};
        var m = {
            initApp:function (cfg) {
                var ui = UIManager.getInstance();
                ui.init();
            }
        };

        return m;
    });